package com.songxh.infrastructure.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songxh.application.dto.SysRoleDTO;
import com.songxh.infrastructure.db.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author songxh
 * @create 2022-12-19-15:50
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 根据用户id获取角色信息
     * @param userId
     * @return
     */
    List<SysRoleDTO> getRoleByUserId(@Param("userId") Long userId);
}
